package com.luo.backend.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 百度文心一言配置类（新版API Key认证）
 */
@Configuration
@ConfigurationProperties(prefix = "baidu.ai")
public class BaiduAIConfig {
    
    /**
     * 百度智能云 API Key（新版认证方式）
     * 格式：bce-v3/ALTAK...
     */
    private String apiKey;
    
    /**
     * 文心一言聊天API URL
     */
    private String chatUrl = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ernie-4.0-turbo-8k";
    
    // Getters and Setters
    public String getApiKey() {
        return apiKey;
    }
    
    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }
    
    public String getChatUrl() {
        return chatUrl;
    }
    
    public void setChatUrl(String chatUrl) {
        this.chatUrl = chatUrl;
    }
}

